Skip to content

Remove helper-thread timing from the retry-deadline test - #128

Merged
BenCodez merged 1 commit into
mainfrom
fix/http-retry-deadline-test
Nov 23, 2026
Merged

BenCodez merged 1 commit into
mainfrom
fix/http-retry-deadline-test

Conversation

@BenCodez

Copy link
Copy Markdown
Owner

The retry-deadline test advanced its virtual clock from a sleeping helper thread and included that thread's join in its elapsed-time check. Delayed helper scheduling can fail the test even when the transport continues to choose the oldest retry deadline.

Advance the virtual clock by 100 ms on the final poll's second clock read instead. This removes the helper thread, sleep and join. The expected first delivery and existing under-one-second assertion are unchanged. Production code, retry deadlines, dependency versions and public APIs are unchanged.

Validation on b3f27a526d1cad204e3766ae08c6662792b5b610:

  • Two focused retry tests passed; the complete HTTP runtime suite passed 62 tests.
  • A temporary delayed-helper control reproduced the original elapsed assertion failure without a production change. A separate temporary mutation that waited for the fresh request deadline instead of the oldest retry failed the same assertion with the corrected fixture; production source was then restored byte-for-byte.
  • JDK 21 offline Maven package: 474 ordinary tests, zero failures/errors, one optional MQTT skip; three full-artifact checks and one shared-artifact check passed. Full/shared/shared-sources were inspected, exclude test classes, and the shared loader linked 60 neutral classes.
  • Independent read-only review approved the exact committed source tree. Diff whitespace and complete source/history/metadata disclosure checks passed.

This establishes a fixture failure mechanism, not the cause of a particular CI scheduling delay. The test remains coupled to the current poll-clock read order and still measures elapsed wall time. No Jenkins rebuild, infrastructure change, live server or native test was performed.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 56234ea4-08f7-486d-90f3-9957a952e74a
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@BenCodez
BenCodez marked this pull request as ready for review November 23, 2026 00:31
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T00:33:34.127780Z b3f27a5 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-23T00:34:43.880869Z b3f27a5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@BenCodez
BenCodez merged commit 4dcb0b6 into main Nov 23, 2026
5 checks passed
@BenCodez
BenCodez deleted the fix/http-retry-deadline-test branch November 23, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant